package com.yxw.live_vod_boot.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
 * @author xiexuxin
 * @date  2023-11-23
 */
@Data
@TableName(value ="yx_live_cost")
@ApiModel(value = "店铺支出视频币信息")
public class YxLiveCostEntity {
    private static final long serialVersionUID = 1L;

    @TableId(value = "live_cost_id",type = IdType.ASSIGN_ID)
    @ApiModelProperty("主键ID")
    private Long liveCostId;

    @TableField("live_id")
    @ApiModelProperty("直播ID")
    private String liveId;

    @TableField("punish_id")
    @ApiModelProperty("违规ID")
    private Long punishId;

    @TableField("shop_id")
    @ApiModelProperty("店铺ID")
    private Long shopId;

    @TableField("start_time")
    @ApiModelProperty("启播时间")
    private Date startTime;

    @TableField("end_Time")
    @ApiModelProperty("关播时间")
    private Date endTime;

    @TableField("total_Time")
    @ApiModelProperty("总时长(分钟)")
    private String totalTime;

    @TableField("illegal_expend")
    @ApiModelProperty("违规扣除视频币")
    private Integer illegalExpend;

    @TableField("expend_video_coin")
    @ApiModelProperty("单次直播消耗总视频币")
    private Integer expendVideoCoin;

    @TableField("expenditure_time")
    @ApiModelProperty("支出时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date expenditureTime;

    @TableField("remark")
    @ApiModelProperty("备注")
    private String remark;

}
